package ftp

import (
	"fmt"
	"gin/model"
	"runtime/debug"
)

type FtpS struct {
	FtpInfoM *model.FtpInfo
}

func NewFtpS() *FtpS {
	return &FtpS{
		model.NewFtpInfo(),
		//Inject services
	}
}

// 获取用户信息
func (s *FtpS) GetFtpInfo() []model.SmFtpInfo {
	defer func() {
		if r := recover(); r != nil {

			fmt.Println("查询错误", r)
			fmt.Println("查询错误", string(debug.Stack()))

		}
	}()
	ftpM := model.NewFtpInfo()
	return ftpM.GetFtpInfo()
}
